<template>
  <div>登录页</div>
  <el-button @click="doLogin">
    登录
  </el-button>
</template>

<script setup lang="ts">
import {useRouter} from 'vue-router'
const router = useRouter()
const doLogin = () => {
  setTimeout(() => {
    localStorage.setItem('authCodes', '1,2')
    router.push('/')
  }, 3000)
}
</script>

<style></style>
